<?php
	$html->addCrumb('Manager','/manager/');
	$html->addCrumb('Unternehmen anlegen','/manager/companies/add');
	
	echo  $this->element('tasks',array('target'=>'/manager/companies'));
?>

<div class="title">Unternehmen anlegen</div>
<?php echo $this->element('flashMessage') ?>

<?php 
	echo $this->Form->create('Company',array('class'=>'form','action'=>'add'));
	
	echo $this->Form->input('company_name',array('label'=>'Name:*'));
	echo $this->Form->input('adress',array('label'=>'Strasse:'));
	echo $this->Form->input('street_number',array('label'=>'Haus-Nr.:'));
	echo $this->Form->input('zip_code',array('label'=>'Plz:'));
	echo $this->Form->input('city',array('label'=>'Stadt:*'));
	echo $this->Form->input('phone_number',array('label'=>'Telefon:*'));
	echo $this->Form->input('pob',array('label'=>'Postfach:'));
	echo $this->Form->input('free_text',array('label'=>'Notizen:','type'=>'textarea'));
	
	echo '<div class="form_div_buttons">';
	echo '<input type="submit" name="Anlegen" value="Anlegen">';
	echo '<a href="'.URL_PREFIX.'/manager/companies/"><button>Abbrechen</button></a>';
	echo '</div>';
	
	echo $this->Form->end();
?>